package threadTest.myCompletableFuture;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.function.Function;

/**
 * 功能描述:奇数偶数
 * 2024/08/26
 *
 * @author ZhangYi
 */
public class OddEven {

	private static volatile int num =0;

	public static void main(String[] args) {
		new OddEven().test(args);
	}
	public void test(String[] args) {

		ThreadPoolExecutor executor = new ThreadPoolExecutor(
				2, 2, 0, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(4),
				new ThreadPoolExecutor.CallerRunsPolicy()
		);


	}



}
